package day2;

import java.util.Arrays;

/**
 * @author oldliu
 * @since 1.0
 */
public class StrinTest3 {
    public static void main(String[] args) {
        String str="朱学峰 is a big shuaige";
        String str2=str.toUpperCase();
        System.out.println(str);
        System.out.println(str2);
        System.out.println(str.equals(str2));
        System.out.println("忽略大小写的比较："+str.equalsIgnoreCase(str2));
        byte[] bytes = str.getBytes();
        System.out.println("byte长度:"+bytes.length);
        System.out.println(Arrays.toString(bytes));
        char[] c = str.toCharArray();
        System.out.println("数组长度是:"+c.length);
        System.out.println("长度是:"+str.length());
        for(char ch:c)
            System.out.print(ch+" ");
    }
}
